<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>斩龙传说</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui">
    <link rel="stylesheet" type="text/css" href="css/basic.css">
    <link rel="icon" sizes="72x72" href="images/logo.png">

    <script type="text/javascript" src="js/jquery-3.0.0.min.js"></script>
    <script type="text/javascript" src="js/md5.js"></script>
    <script type="text/javascript" src="js/json2.js"></script>
    <script type="text/javascript" src="js/settings.js"></script>
    <script type="text/javascript" src="js/ws_auto.js"></script>
    <script type="text/javascript" src="js/index.js"></script>

</head>
<body>

<div id="home"></div>
<script type="text/javascript">
    document.documentElement.style.fontSize = document.documentElement.clientWidth / 7.5 + 'px';
    console.log(database.cookies);
    if(database.cookies) {
        console.log("开始加载游戏地图...");
        $("#home").load("home.html", function () {
            console.log("==========位置=============");
            var json_dict = {"command": "位置", "cookies": database.cookies};
            var json_text = JSON.stringify(json_dict);
            console.log(json_text);
            setTimeout(function (){sdmg(json_text)},200);  //ws.send(json);  判断连接正常才发送
        });
    }
</script>
</body>
</html>